<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>

    <link rel="stylesheet" href="/movie/web/Public/html/jquery-weui/lib/weui.min.css">
    <link rel="stylesheet" href="/movie/web/Public/html/jquery-weui/css/jquery-weui.css">

    <link rel="stylesheet" href="/movie/web/Public/html/bootstrap/css/bootstrap.min.css">

    <script src="/movie/web/Public/html/jquery-weui/lib/jquery-2.1.4.js"></script>
    <script src="/movie/web/Public/html/jquery-weui/js/jquery-weui.js"></script>

    <script src="/movie/web/Public/html/jquery-weui/js/swiper.js"></script>
</head>
<body>
<style>

    .navtab {
        display: -webkit-flex;
        display: flex;
    }

    .navtab .item {
        -webkit-flex: 1;
        flex: 1;
        line-height: 45px;
        text-align: center;
        color: #333;
    }

    .navtab .item.active {
        color: #36CA71;
        border-bottom: 2px solid #36CA71;
    }
</style>

<div class="navtab">

    <a href="<?php echo U('index',['time'=>date('md'),'id'=>$_GET['id']]);?>"
       class="item <?php echo ($_GET['time']==date('md'))?'active':''; ?>" style="text-decoration:none;">
        今天 <?php echo date('m-d',time());?>
    </a>
    <a href="<?php echo U('index',['time'=>date('md',strtotime('+1 days')),'id'=>$_GET['id']]);?>"
       class="item <?php echo ($_GET['time']==date('md',strtotime('+1 days')))?'active':''; ?>" style="text-decoration:none;">
        明天 <?php echo date('m-d',(time()+3600*24*1));?>
    </a>
    <a href="<?php echo U('index',['time'=>date('md',strtotime('+2 days')),'id'=>$_GET['id']]);?>"
       class="item <?php echo ($_GET['time']==date('md',strtotime('+2 days')))?'active':''; ?>" style="text-decoration:none;">
        后天 <?php echo date('m-d',(time()+3600*24*2));?>
    </a>
    <a href="<?php echo U('index',['time'=>date('md',strtotime('+3 days')),'id'=>$_GET['id']]);?>"
       class="item <?php echo ($_GET['time']==date('md',strtotime('+3 days')))?'active':''; ?>" style="text-decoration:none;">
        本周<?php echo date('N', (time()+3600*24*3));?> <?php echo date('m-d',(time()+3600*24*3));?>
    </a>
</div>
<div class="weui_cell">
    <div class="weui_cell_bd weui_cell_primary">
        <?php if(is_array($list)): foreach($list as $key=>$val): ?><a href="<?php echo U('Screen/index',['uid'=>$val['uid'],'mid'=>$val['mid'],'stime'=>$val['stime']]);?>"><p class="movie-name">电影城名称 <?php echo ($val['uname']); ?></p></a>
         <!--   <?php var_dump(['uid'=>$val['uid']]); ?>
            <?php var_dump(['mid'=>$val['mid']]); ?>
            <?php var_dump(['stime'=>$val['stime']]); ?>-->
            <p class="movie-summary">电影城地址 <?php echo ($val['uad']); ?></p>
            <p class="movie-description">最近播放时间 <?php echo date('H点i分',$val['stime']);?></p><?php endforeach; endif; ?>
    </div>
</div>

</body>
</html>